﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Collections;
using System.Runtime.Serialization;

namespace EntityLibrary
{
    [System.ComponentModel.DesignerCategory("Code")]
    [SerializableAttribute]
    public class IRalationInHosRegData : DataSet
    {


        public const string I_RALATIONINHOSREG_INHOSFLOWNO = "INHOSFLOWNO";
        public const string I_RALATIONINHOSREG_INHOSID = "INHOSID";
        public const string I_RALATIONINHOSREG_MEDTYPE = "MEDTYPE";
        public const string I_RALATIONINHOSREG_MEDICARENO = "MEDICARENO";
        public const string I_RALATIONINHOSREG_IDCARDNO = "IDCARDNO";
        public const string I_RALATIONINHOSREG_FLAG = "FLAG";//状态标志
        public const string I_RALATIONINHOSREG_TRANDT = "TRANDT";//交易时间
        public const string I_RALATIONINHOSREG_REMARK = "REMARK";
        public const string I_RALATIONINHOSREG_PRE1 = "PRE1";
        public const string I_RALATIONINHOSREG_PRE2 = "PRE2";
        public const string I_RALATIONINHOSREG_PRE3 = "PRE3";
        public const string I_RALATIONINHOSREG_PRE4 = "PRE4";
        public const string I_RALATIONINHOSREG_PRE5 = "PRE5";
        public const string I_RALATIONINHOSREG_PRE6 = "PRE6";
        public const string I_RALATIONINHOSREG_PRE7 = "PRE7";
        public const string I_RALATIONINHOSREG_PRE8 = "PRE8";
        public const string I_RALATIONINHOSREG_PRE9 = "PRE9";
        public const string I_RALATIONINHOSREG_PRE10 = "PRE10";
        public const string I_RALATIONINHOSREG_PRE11 = "PRE11";
        public const string I_RALATIONINHOSREG_PRE12 = "PRE12";
        public const string I_RALATIONINHOSREG_PRE13 = "PRE13";
        public const string I_RALATIONINHOSREG_PRE14 = "PRE14";
        public const string I_RALATIONINHOSREG_PRE15 = "PRE15";
        public const string I_RALATIONINHOSREG_OUTPUTSTR = "OUTPUTSTR";
        public const string I_RALATIONINHOSREG_MEDCLASS = "MEDCLASS";
        public const string I_RALATIONINHOSREG_POSDATE = "POSDATE";
        public const string I_RALATIONINHOSREG_POSMONEY = "POSMONEY";
        public const string I_RALATIONINHOSREG_CASHMONEY = "CASHMONEY";
        public const string I_RALATIONINHOSREG_POSFLOWNO = "POSFLOWNO";



        private DataTable table;
        private DataColumn col;
        private ArrayList list;



        private IRalationInHosRegData(SerializationInfo info, StreamingContext context)
            : base(info, context)
        {
        }

        public IRalationInHosRegData()
        {

            BuildDataTables();
        }

        //构建业务实体类的结构。
        private void BuildDataTables()
        {

            table = new DataTable("I_RALATIONINHOSREG");

            table.Columns.Add("INHOSFLOWNO", typeof(System.String));
            table.Columns.Add("INHOSID", typeof(System.String));
            table.Columns.Add("REMARK", typeof(System.String));
            table.Columns.Add("MEDTYPE", typeof(System.String));
            table.Columns.Add("MEDICARENO", typeof(System.String));
            table.Columns.Add("IDCARDNO", typeof(System.String));
            table.Columns.Add("FLAG", typeof(System.String));
            table.Columns.Add("TRANDT", typeof(System.DateTime));
            table.Columns.Add("PRE0", typeof(System.String));
            table.Columns.Add("PRE1", typeof(System.String));
            table.Columns.Add("PRE2", typeof(System.String));
            table.Columns.Add("PRE3", typeof(System.String));
            table.Columns.Add("PRE4", typeof(System.String));
            table.Columns.Add("PRE5", typeof(System.String));
            table.Columns.Add("PRE6", typeof(System.String));
            table.Columns.Add("PRE7", typeof(System.String));
            table.Columns.Add("PRE8", typeof(System.String));
            table.Columns.Add("PRE9", typeof(System.String));
            table.Columns.Add("PRE10", typeof(System.String));
            table.Columns.Add("PRE11", typeof(System.String));
            table.Columns.Add("PRE12", typeof(System.String));
            table.Columns.Add("PRE13", typeof(System.String));
            table.Columns.Add("PRE14", typeof(System.String));
            table.Columns.Add("PRE15", typeof(System.String));
            table.Columns.Add("OUTPUTSTR", typeof(System.String));
            table.Columns.Add("MEDCLASS", typeof(System.String));
            table.Columns.Add("POSDATE", typeof(System.String));
            table.Columns.Add("POSMONEY", typeof(System.String));
            table.Columns.Add("CASHMONEY", typeof(System.String));
            table.Columns.Add("POSFLOWNO", typeof(System.String));


            list = new ArrayList();

            col = table.Columns["INHOSFLOWNO"];
            list.Add(col);


            table.PrimaryKey = (DataColumn[])list.ToArray(typeof(DataColumn));
            this.Tables.Add(table);



        }



    }
}
